package com.zhuiyun.project.api.imagesorting.service;

import com.zhuiyun.project.api.imagesorting.entity.ImageSorting;
import com.zhuiyun.project.common.errorCode.CommonException;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @ClassName imageSorting
 * @Description 图片排序service接口
 * @Author zsc
 * @Date 2024/11/11 19:06
 */
public interface ImageSortingService {

    /**
    * @Author zsc
    * @Description 新增图片排序
    * @Date 2024/11/11 19:29
    * @Return int
    * @param imageSorting
    */
    int saveImageSorting(ImageSorting imageSorting, MultipartFile file) throws CommonException;

    /**
    * @Author zsc
    * @Description 删除图片排序
    * @Date 2024/12/9 18:53
    * @Return int
    * @param id
    * @param imgId
    */
    int deleteImageSorting(int id , int imgId) throws CommonException;

    /**
    * @Author zsc
    * @Description 修改图片排序
    * @Date 2024/11/11 19:47
    * @Return int
    * @param imageSorting
    */
    int updateImageSorting(ImageSorting imageSorting, MultipartFile file) throws CommonException;

    /**
    * @Author zsc
    * @Description 查询图片排序
    * @Date 2024/11/11 19:53
    * @Return java.util.List<com.zhuiyun.project.api.imagesorting.entity.ImageSorting>

    */
    List<ImageSorting> getImageSortingList();
}
